import { http } from "@/api";
import { UserModel } from "@/api/model/user.model.ts";

/**
 * 获取当前登录的用户信息
 */
export function getCurrentUserInfo(): Promise<UserModel> {
    return http({
        method: "GET",
        url: "/user"
    });
}